Link to this headingCommand Line

Mac OSX commands

Generating new Mac Serials:

>>> ./generate-unique-machine-values.sh -c 1 --model="MacBookPro12,1" DEVICE_MODEL: MacBookPro12,1 SERIAL_SET_COUNT: 1 OUTPUT_DIRECTORY: . Warning: arc4random is not available! Wrote CSV to: ./serial_sets-2021-03-15-16:57:10.csv Wrote CSV to: ./serial_sets-2021-03-15-16:57:10.tsv DEVICE_MODEL,SERIAL,BOARD_SERIAL,UUID,MAC_ADDRESS,WIDTH,HEIGHT "MacBookPro12,1","C02PDEZHH1DP","C02510401GUGDVV1F","12AEFBB2-EB99-4C5A-9B1B-E74DD517C0CC","00:25:4B:72:38:80","1920","1080" DEVICE_MODEL SERIAL BOARD_SERIAL UUID MAC_ADDRESS WIDTH HEIGHT MacBookPro12,1 C02PDEZHH1DP C02510401GUGDVV1F 12AEFBB2-EB99-4C5A-9B1B-E74DD517C0CC 00:25:4B:72:38:80 1920 1080

Source

Check updates:

>>> softwareupdate --list Software Update Tool Finding available software No new software available.

Don’t create DS_Store files:

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

Access your keychain:

security find-internet-password -s "https://example.com"

Internet speedtest:

networkQuality

Speach to Text:

hear

Link to this heading1password

to Env:

#Where to load the info export APP_ENV=dev export GITHUB_TOKEN=op://development/GitHub/credentials/personal_token #MYSQL_DATABASE = "op://$APP_ENV/mysql/database" #MYSQL_USERNAME = "op://$APP_ENV/mysql/username" #MYSQL_PASSWORD = "op://$APP_ENV/mysql/password" # Load the secrets from the env and run the command gh op run -- gh # Load the secrets from the .env file and run the command aws op run --env-file="./prod.env" -- aws

In Config Files:

>>> export APP_ENV=dev >>> cat config.yml.tpl database: host: http://localhost port: 5432 username: op://$APP_ENV/mysql/username password: op://$APP_ENV/mysql/password >>> op inject -i config.yml.tpl -o config.yml

In Script:

#!/bin/bash export AWS_SECRET_ACCESS_KEY=$(op read op://prod/aws/secret-key) export AWS_ACCESS_KEY_ID=$(op read op://prod/aws/access-key-id) aws sts get-caller-identity

Link to this headingBrew

Link to this headingBrewfile

Brew bundle installs everything from a file
Source https://catalins.tech/how-i-setup-new-macbooks/